wx.getUserProfile({
    success: function(res) {
        wx.login({
            success: revvs => {
                wx.request({
                    url: 'https://www.qqagame.com/login/weixin_openidx_back/', //仅为示例，并非真实的接口地址
                    method:"POST",
                    data: {
                        rawData: res.rawData,
                        signature: res.signature,
                        encryptedData: res.encryptedData,
                        iv: res.iv,
                        code:revvs.code
                    },
                    header: {'content-type': 'application/x-www-form-urlencoded'},
                    success (res) {
                        console.log(res.data)
                    }
                });
            }
        });
    }
});